<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
            <li class="active"><a href="{:url('Skin/index')}">试题列表</a></li>
            <li><a href="{:url('Skin/add')}">添加试题</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('Skin/index')}">
            试题名称:
            <input type="text" class="form-control" name="name" value="{:input('request.name/s','')}" placeholder="请输入试题名称">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Skin/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                    <th width="50">ID</th>
                    <th>试题名称</th>
                    <th>答案</th>
                    <th>添加时间</th>
                    <th>查看</th>
				</tr>
			</thead>
			<tbody>
                <foreach name="skin" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.answer}</td>
                        <td>{$vo.addtime}</td>
                        <td>
                        <a class="btn btn-xs btn-primary" href="{:url('Skin/edit',array('id'=>$vo['id']))}">编辑</a>
                        <a class="btn btn-xs btn-danger" href="{:url('Skin/delete',array('id'=>$vo['id']))}">删除</a></td>
                    </tr>
                </foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>